<?php
$context = stream_context_create(['http' => [
    'header' => 'Cookie: PHPSESSID=7iij6erp385a142ncdfcoagts7',
]]);
$html = file_get_contents('http://localhost/index.php',false,$context);
//echo $html;
preg_match_all('@<tr><td>(\d+)</td><td>([^<]+)</td><td>([^<]+)</td>@',$html,$m,PREG_SET_ORDER);
print_r($m[0]);
foreach ($m as $user){
    echo "$user[1]\t$user[2]\t$user[3]\n";
}